package models

import (
    "time"

    "go-admin/common/models"
)

type HtDeliver struct {
    models.Model

    TalentId   int        `json:"talentId" gorm:"type:bigint;comment:人才id"`
    Talent     HtTalent   `json:"talent" gorm:"foreignkey:TalentId"`
    Company    string     `json:"company" gorm:"type:varchar(128);comment:公司名称"`
    Department string     `json:"department" gorm:"type:varchar(128);comment:部门名称"`
    Salary     string     `json:"salary" gorm:"type:varchar(128);comment:薪酬"`
    JoinTime   *time.Time `json:"joinTime" gorm:"type:datetime(3);comment:入职时间"`
    Note       string     `json:"note" gorm:"type:varchar(2048);comment:备注信息"`
    models.ModelTime
    models.ControlBy
}

func (HtDeliver) TableName() string {
    return "ht_deliver"
}

func (e *HtDeliver) Generate() models.ActiveRecord {
    o := *e
    return &o
}

func (e *HtDeliver) GetId() interface{} {
    return e.Id
}
